package com.xmb.wcapi.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xmb.wcapi.entity.BaseMaterial;
import com.xmb.wcapi.entity.IOSReport;
import com.xmb.wcapi.entity.IOSReportDetails;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author huangping
 * @since 2024-04-12
 */
@DS("db1")
public interface IOSReportMapper extends BaseMapper<IOSReport> {

    IPage<IOSReport> selectInfoPage(Page<?> page, @Param("ew") QueryWrapper<IOSReport> ew);

    IPage<IOSReportDetails> selectInfo(Page<?> page, @Param("ew") QueryWrapper<IOSReport> ew);

    IPage<IOSReport> selectInfoTreePage(Page<?> page, @Param("ew") QueryWrapper<IOSReport> ew);

    List<IOSReportDetails> selectSon(@Param("material") String material);

    /** 查询指定供应商的母件编码 */
    IPage<BaseMaterial> getBaseMaterialList(Page<?> page, @Param("ew") QueryWrapper<BaseMaterial> ew);

    List<BaseMaterial> selectSonBase(String bomId);

}
